#include "air32f10x_conf.h"
#ifndef _TIM4_H 
#define _TIM4_H
extern volatile uint32_t tim4_count;

#define TIM4_PERIOD_US 10000
__STATIC_FORCEINLINE void tim4_inc_and_clear_update_flag()
{
    TIM4->SR = (uint16_t)~TIM_IT_Update;
    tim4_count++;
}

void tim4_init();

#endif // !_TIM3_H 